<!--SIF Implementation Specification 2.2-6 (March 17, 2008)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.sifinfo.org/infrastructure/2.x" xmlns:sif="http://www.sifinfo.org/infrastructure/2.x" elementFormDefault="qualified">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="imports/xml/xml.xsd" />
  <xs:complexType name="CalendarDateType">
    <xs:annotation>
      <xs:documentation>This object defines information related to a school calendar day in a given school calendar year. If both CalendarDate and CalendarSummary objects are supported, there must be an instance of this object for each date between CalendarSummary StartDate and EndDate, inclusive.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CalendarDateType" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Code" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Code indicating the type of school day.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:union>
                  <xs:annotation>
                    <xs:documentation>Code indicating the type of school day.</xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="sif:NCES0084CalendarEventType" />
                  </xs:simpleType>
                  <xs:annotation>
                    <xs:documentation>Code indicating the type of school day.</xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:token">
                      <xs:enumeration value="INST">
                        <xs:annotation>
                          <xs:documentation>Instructional School Day</xs:documentation>
                        </xs:annotation>
                      </xs:enumeration>
                      <xs:enumeration value="MKUP">
                        <xs:annotation>
                          <xs:documentation>Instructional day that is scheduled solely to make up for emergency days or early dismissal days.</xs:documentation>
                        </xs:annotation>
                      </xs:enumeration>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:union>
              </xs:simpleType>
            </xs:element>
            <xs:element name="OtherCodeList" minOccurs="0" nillable="true" type="sif:OtherCodeListType" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="CalendarDateNumber" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:documentation>Order in which the calendar date falls within the school calendar.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentAttendance" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CountsTowardAttendance" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Designates whether this date should be counted toward student attendance.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:enumeration value="Yes" />
                  <xs:enumeration value="No" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="AttendanceValue" minOccurs="0">
              <xs:simpleType>
                <xs:restriction base="xs:decimal">
                  <xs:annotation>
                    <xs:documentation>
							Amount of the school day in which the student should be in attendance (Format is x.x; a student who should be in attendance a full day would be represented as 1.0).  If CountsTowardAttendance equals Yes then StudentAttendanceValue must be greater than zero.
						</xs:documentation>
                  </xs:annotation>
                  <xs:minInclusive value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
                  <xs:maxInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
                  <xs:fractionDigits value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TeacherAttendance" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CountsTowardAttendance" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Designates whether this date should be counted toward teacher attendance.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:enumeration value="Yes" />
                  <xs:enumeration value="No" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="AttendanceValue" minOccurs="0">
              <xs:simpleType>
                <xs:restriction base="xs:decimal">
                  <xs:annotation>
                    <xs:documentation>Amount of the school day in which the teacher should be in attendance (format is x.x; a teacher who should be in attendance a full day would be represented as 1.0).</xs:documentation>
                  </xs:annotation>
                  <xs:minInclusive value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
                  <xs:maxInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
                  <xs:fractionDigits value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="AdministratorAttendance" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CountsTowardAttendance" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Designates whether this date should be counted toward administrator attendance.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:enumeration value="Yes" />
                  <xs:enumeration value="No" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="AttendanceValue" minOccurs="0">
              <xs:simpleType>
                <xs:restriction base="xs:decimal">
                  <xs:annotation>
                    <xs:documentation>Amount of the school day in which the administrator should be in attendance (format is x.x; an administrator who should be in attendance a full day would be represented as 1.0).</xs:documentation>
                  </xs:annotation>
                  <xs:minInclusive value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
                  <xs:maxInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
                  <xs:fractionDigits value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="sif:SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="sif:SIF_ExtendedElementsType" />
    </xs:sequence>
    <xs:attribute name="Date" use="required" type="xs:date">
      <xs:annotation>
        <xs:documentation>A specific school day that occurs within the school year.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CalendarSummaryRefId" use="required" type="sif:IdRefType">
      <xs:annotation>
        <xs:documentation>The ID (GUID) of the calendar summary in which this calendar date is.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="SchoolInfoRefId" use="required" type="sif:IdRefType">
      <xs:annotation>
        <xs:documentation>The ID (GUID) of the school for which this calendar information is being reported.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="SchoolYear" use="required" type="sif:SchoolYearType">
      <xs:annotation>
        <xs:documentation>School year for which the information is applicable, expressed as the four-digit year in which the school year ends (e.g., "2007" for the 2006-07 school year).</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

  <xs:element name="CalendarDate" type="sif:CalendarDateType" />

</xs:schema>